package net.trustie.dao;

import net.trustie.model.linuxtone_Model;
import org.apache.ibatis.annotations.Insert;

public interface LinuxtoneDao {
	
	/*标准表中的字段*//*+ "insert into t_knowledge (`deal_title`,`author`,`content`,`tags`,`reply_num`,
	 * `view_num`,`vote_num`,`collection_num`,`abstract`,`type`,`crawled_time`,`url`,`created_time`,
	 * `category`,`source`,`history`,`author_url`,`last_time`,`url_md5`")*/
	
	/*标准表中剩余的字段 tags,abstract,category,source,last_time,url_md5*/
	
	
	@Insert("insert into linuxtone"			
			+ "(`url`,`deal_title`,`content`,`type`,`view_num`,`reply_num`,`vote_num`,`vote_down`,"
			+ "`collection_num`,`shared_num`,`created_time`,`extractTime`,`crawled_time`,`author`,`author_url`,`history`)"
					
			+ " values (#{postUrl},#{postTitle},#{postContent},#{postType},#{viewNum},#{replyNum},#{voteUp},#{voteDown},#{favoritedNum},"
			+ "#{sharedNum},#{postTime},#{extractTime},#{crawledTime},#{authorName},#{authorUrl},#{history})")
	
	/*1标准表中独有,设置为允许为空,INSERT需要补齐*/
	/*2与标准表对应字段*/
	/*3原社区中独有保留字段*/ 
			
			/*@Insert("insert into linuxtone"			
			+ "(`2url`,`2deal_title`,`2content`,`2type`,`2view_num`,`2reply_num`,`2view_num`,`3vote_down`,"
			+ "`2collection_num`,`3shared_num`,`2created_time`,`3extractTime`,`2crawled_time`,`2author`,`2author_url`,`2history`,"
			+ "`tags`,`abstract`,`category`,`source`,`last_time`,`url_md5`)"")
	*/
	
	
	public int add(linuxtone_Model linuxtone_Model);
}
